package jp.co.sharp.android.parents.kidsguard.dto;

import java.io.Serializable;
import java.util.Objects;

public class ScheduleDetailDto implements Serializable,Cloneable {

    private int id;

    private String title;

    private String start;

    private String end;

    private String holiday;

    private String date;

    private String memo;

    private int allDay;

    private int repeat;

    private int alarm;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public String getHoliday() {
        return holiday;
    }

    public void setHoliday(String holiday) {
        this.holiday = holiday;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public int getAllDay() {
        return allDay;
    }

    public void setAllDay(int allDay) {
        this.allDay = allDay;
    }

    public int getRepeat() {
        return repeat;
    }

    public void setRepeat(int repeat) {
        this.repeat = repeat;
    }

    public int getAlarm() {
        return alarm;
    }

    public void setAlarm(int alarm) {
        this.alarm = alarm;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ScheduleDetailDto that = (ScheduleDetailDto) o;
        return id == that.id &&
                Objects.equals(title, that.title) &&
                Objects.equals(start, that.start) &&
                Objects.equals(end, that.end) &&
                Objects.equals(holiday, that.holiday) &&
                Objects.equals(date, that.date)&&
                Objects.equals(memo, that.memo)&&
                allDay == that.allDay&&
                repeat == that.repeat&&
                alarm == that.alarm;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        Object obj = super.clone();
        return obj;
    }
}
